import React, { useState, useRef } from "react";
import Gaode from "./Gaode";
import Gaomap from "./GaoMap";

import { NavBar } from "react-vant";
import { useNavigate } from "react-router-dom";

function Location_selection() {
  const navigate = useNavigate();

  return (
    <div style={{ width: "100vw" }}>
      <NavBar
        title="地址搜索"
        rightText="取消"
        onLeftClick={() => navigate(-1)}
      />
      <Gaode />
      {/* 将定位到的地址显示在这里 */}
      <Gaomap />
    </div>
  );
}

export default Location_selection;
